import request from '@/utils/request'

// 数据概况

export async function getDataOverview(params: any) {
  return request('/api/v2/getDataOverview', {
    method: 'GET',
    params
  })
}

// 订单商品数据统计
export async function getOrderGoodsCount(params: any) {
  return request('/api/v2/getOrderGoodsCount', {
    method: 'GET',
    params
  })
}

// 租金走势图
export async function getRentCurve(params: any) {
  return request('/api/v2/getRentCurve', {
    method: 'GET',
    params
  })
}

// 每日已收租金趋势图
export async function getReceivedRentCurve(params: any) {
  return request('/api/v2/getReceivedRentCurve', {
    method: 'GET',
    params
  })
}

// 尾款走势图
export async function getFinalPaymentCurve(params: any) {
  return request('/api/v2/getFinalPaymentCurve', {
    method: 'GET',
    params
  })
}

// 已收尾款趋势图
export async function getReceivedFinalPaymentCurve(params: any) {
  return request('/api/v2/getReceivedFinalPaymentCurve', {
    method: 'GET',
    params
  })
}

// 电商订单商品统计汇总
export async function getEcommerceOrderGoodsCount(params: any) {
  return request('/api/v2/getEcommerceOrderGoodsCount', {
    method: 'GET',
    params
  })
}
